package com.googlecode.connectlet.crypto;

import java.security.Key;

public class KeyImpl implements Key {
	private static final long serialVersionUID = 1L;

	private byte[] key;

	public KeyImpl(byte[] key) {
		this.key = key;
	}

	@Override
	public byte[] getEncoded() {
		return key;
	}

	@Override
	public String getAlgorithm() {
		return "ANY";
	}

	@Override
	public String getFormat() {
		return "RAW";
	}
}